<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>yadis.constants</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="yadis-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://www.openidenabled.com/yadis/">Python-Yadis</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="yadis-module.html">Package&nbsp;yadis</a> ::
        Module&nbsp;constants
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="yadis.constants-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="yadis.constants-module.html">Module yadis.constants</a></h1>
<pre class="py-src">
<tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-name">__all__</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'YADIS_HEADER_NAME'</tt><tt class="py-op">,</tt> <tt class="py-string">'YADIS_CONTENT_TYPE'</tt><tt class="py-op">,</tt> <tt class="py-string">'YADIS_ACCEPT_HEADER'</tt><tt class="py-op">]</tt> </tt>
<tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package yadis=yadis-module.html"><a title="yadis" class="py-name" href="#" onclick="return doclink('link-0', 'yadis', 'link-0');">yadis</a></tt></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module yadis.accept=yadis.accept-module.html"><a title="yadis.accept" class="py-name" href="#" onclick="return doclink('link-1', 'accept', 'link-1');">accept</a></tt></tt> <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name" targets="Function yadis.accept.generateAcceptHeader()=yadis.accept-module.html#generateAcceptHeader"><a title="yadis.accept.generateAcceptHeader" class="py-name" href="#" onclick="return doclink('link-2', 'generateAcceptHeader', 'link-2');">generateAcceptHeader</a></tt></tt> </tt>
<tt class="py-lineno"> 3</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt id="link-3" class="py-name" targets="Variable yadis.constants.YADIS_HEADER_NAME=yadis.constants-module.html#YADIS_HEADER_NAME"><a title="yadis.constants.YADIS_HEADER_NAME" class="py-name" href="#" onclick="return doclink('link-3', 'YADIS_HEADER_NAME', 'link-3');">YADIS_HEADER_NAME</a></tt></tt> <tt class="py-op">=</tt> <tt class="py-string">'X-XRDS-Location'</tt> </tt>
<tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt id="link-4" class="py-name" targets="Variable yadis.constants.YADIS_CONTENT_TYPE=yadis.constants-module.html#YADIS_CONTENT_TYPE"><a title="yadis.constants.YADIS_CONTENT_TYPE" class="py-name" href="#" onclick="return doclink('link-4', 'YADIS_CONTENT_TYPE', 'link-4');">YADIS_CONTENT_TYPE</a></tt></tt> <tt class="py-op">=</tt> <tt class="py-string">'application/xrds+xml'</tt> </tt>
<tt class="py-lineno"> 6</tt>  <tt class="py-line"> </tt>
<tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-comment"># A value suitable for using as an accept header when performing YADIS</tt> </tt>
<tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment"># discovery, unless the application has special requirements</tt> </tt>
<tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt id="link-5" class="py-name" targets="Variable yadis.constants.YADIS_ACCEPT_HEADER=yadis.constants-module.html#YADIS_ACCEPT_HEADER"><a title="yadis.constants.YADIS_ACCEPT_HEADER" class="py-name" href="#" onclick="return doclink('link-5', 'YADIS_ACCEPT_HEADER', 'link-5');">YADIS_ACCEPT_HEADER</a></tt></tt> <tt class="py-op">=</tt> <tt id="link-6" class="py-name"><a title="yadis.accept.generateAcceptHeader" class="py-name" href="#" onclick="return doclink('link-6', 'generateAcceptHeader', 'link-2');">generateAcceptHeader</a></tt></tt><tt class="py-op">(</tt> </tt>
<tt class="py-lineno">10</tt>  <tt class="py-line">    <tt class="py-op">(</tt><tt class="py-string">'text/html'</tt><tt class="py-op">,</tt> <tt class="py-number">0.3</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<tt class="py-lineno">11</tt>  <tt class="py-line">    <tt class="py-op">(</tt><tt class="py-string">'application/xhtml+xml'</tt><tt class="py-op">,</tt> <tt class="py-number">0.5</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<tt class="py-lineno">12</tt>  <tt class="py-line">    <tt class="py-op">(</tt><tt id="link-7" class="py-name"><a title="yadis.constants.YADIS_CONTENT_TYPE" class="py-name" href="#" onclick="return doclink('link-7', 'YADIS_CONTENT_TYPE', 'link-4');">YADIS_CONTENT_TYPE</a></tt></tt><tt class="py-op">,</tt> <tt class="py-number">1.0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<tt class="py-lineno">13</tt>  <tt class="py-line">    <tt class="py-op">)</tt> </tt>
<tt class="py-lineno">14</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="yadis-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://www.openidenabled.com/yadis/">Python-Yadis</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">Generated by Epydoc
        3.0alpha3 on Fri Dec  8 13:17:19 2006</td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
